package main
import(
	"fmt"
)

func main(){
  //给出5个学生的成绩，求和与平均数
  //定义数组
  var scores [5]int
  //填数

  scores[0] = 88
  scores[1] = 98
  scores[2] = 78
  scores[3] = 68
  scores[4] = 86
  //和
  sum := 0
  for i :=0; i < len(scores);i++ {
    sum += scores[i]
  }
  avg := sum / len(scores)
  fmt.Printf("总分: %v\n平均成绩: %v",sum,avg)
}